package com.android.baseconfig.constact;
/*
 * -----------------------------------------------------------------
 * Copyright © 2016年 clife. All rights reserved.
 * Shenzhen H&T Intelligent Control Co.,Ltd.
 * -----------------------------------------------------------------
 * File: ComParamContact.java
 * Create: 16/6/21 14:05
 * Author: uuxia-mac
 * 公共key参数
 */

public class ComParamContact {

    public final static class Common {
        public final static String APPID = "appId";
        public final static String ACCESSTOKEN = "accessToken";
        public final static String TIMESTAMP = "timestamp";
        public final static String REFRESH_TOKEN = "refreshToken";
        public final static String SIGN = "sign";

    }

    public final static class Code {
        //http请求成功状态码
        public final static int HTTP_SUCESS = 200;
        //AccessToken错误或已过期
        public static final int ACCESS_TOKEN_EXPIRED = 100010101;
        //RefreshToken错误或已过期
        public static final int REFRESH_TOKEN_EXPIRED = 100010102;
        //帐号在其它手机已登录
        public static final int OTHER_PHONE_LOGINED = 100021006;
        //timestamp过期
        public static final int TIMESTAMP_ERROR = 100010104;
        //缺少授权信息,没有accessToken,应该是没有登录
        public final static int NO_ACCESS_TOKEN = 100010100;
        //签名错误
        public final static int ERROR_SIGN = 100010105;
        //设备未绑定
        public final static int DEVICE_NO_BIND = 100022001;
        //设备不在线
        public final static int DEVICE_OFF_LINE = 100022006;
        //设备不存在
        public final static int NO_DEVICE = 100022000;


    }

    public  static class Token {
        public static String PATH = "/v1/account/token/refresh";
        public final static String AUTH_MODEL = "authModel";
        public final static String AUTH_MODEL_NEW = "authModel";

    }

    public final static class UserStatus {
        public final static String PATH = "/v1/user/get";
        public final static String GETVERICODE = "/v1/account/register/getVeriCode";
    }

    public final static class Login {
        public final static String PATH = "/v1/account/login";
        public final static String ACCOUNT = "account";
        public final static String PASSWORD = "password";
    }

    public final static class Loginout{
        //public final static String PATH = "/v1/account/loginOut";
        public final static String PATH = "/v1/account/loginOut/";
    }

    public final static class IMEI{
        public final static String PATH = "v1/account/imei/add";
        public final static String IMEI = "imei";
        public final static String REGID = "regId";
        public final static String APPTYPEVERSION = "appTypeVersion";
    }

    //灰度接口
    public final static class Strategy{
        public static String PATH = "v1/app/cms/publish/getStrategy";
        public final static String FROMTYPE= "fromType";   //数据来源（固定值：2）
        public final static String CHANNEL = "channel";    //渠道
        public final static String STRATEGY= "strategy";    //渠道

    }
}
